// 插件配置
const plugins = [
  // 按需加载
  [
    "import",
    { libraryName: "ant-design-vue", libraryDirectory: "es", style: true },
  ],
  ["@babel/plugin-transform-runtime"],
  ["transform-class-properties"],
];

module.exports = {
  presets: [
    "@vue/cli-plugin-babel/preset",
    [
      "@babel/preset-env",
      { corejs: { version: 3, proposals: true }, useBuiltIns: "entry" },
    ],
  ],
  plugins,
};
